2
npm ERR! path D:\dataCenter\bi-frontend-base\node_modules\nyc\node_modules\archy\npm-shrinkwrap.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'D:\dataCenter\bi-frontend-base\node_modules\nyc\node_modules\archy\npm-shrinkwrap.json'
npm ERR!  { [Error: EPERM: operation not permitted, open 'D:\dataCenter\bi-frontend-base\node_modules\nyc\node_modules\archy\npm-shrinkwrap.json']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, open 'D:\dataCenter\bi-frontend-base\node_modules\nyc\node_modules\archy\npm-shrinkwrap.json'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'open',
npm ERR!      path:
npm ERR!       'D:\\dataCenter\\bi-frontend-base\\node_modules\\nyc\\node_modules\\archy\\npm-shrinkwrap.json' },
npm ERR!   isOperational: true,
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, open \'D:\\dataCenter\\bi-frontend-base\\node_modules\\nyc\\node_modules\\archy\\npm-shrinkwrap.json\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path:
npm ERR!    'D:\\dataCenter\\bi-frontend-base\\node_modules\\nyc\\node_modules\\archy\\npm-shrinkwrap.json',
npm ERR!   parent: 'nyc' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\MyConfiguration\zr02718\AppData\Roaming\npm-cache\_logs\2019-03-19T07_19_58_886Z-debug.log

删除当前用户目录下面的.npmrc文件重新安装即可。这个文件不一定在哪里,在当前用户目录下面,可能在C盘也可能再D盘


frontoldman
4.5k 声望1.3k 粉丝

前端开发者